package com.tm.servicemsm.controller;

import java.util.HashMap;
import java.util.Map;

/*import static com.sun.corba.se.impl.util.RepositoryId.cache;*/

/**
 * 2024/7/20 Cjj 实现缓存的是病例和药房一类的根据挂号和类型进行储存
 */
public class HospitalCache {
  private Map<String,Object> caseCache= new HashMap<>();
  private Map<String,Object> drugstoreCache=new HashMap<>();


    public Map<String, Object> getCaseCache() {
        return caseCache;
    }

    public void setCaseCache(Map<String, Object> caseCache) {
        this.caseCache = caseCache;
    }

    public Map<String, Object> getDrugstoreCache() {
        return drugstoreCache;
    }

    public void setDrugstoreCache(Map<String, Object> drugstoreCache) {
        this.drugstoreCache = drugstoreCache;
    }

    /**
     * 测试代码
     **/
    public static void main(String[] args) {
      /*  HospitalCache cache = new HospitalCache();
        cache.addCase("001", "病例信息1");
        cache.addDrugstore("类型1", "药房信息1");

        String caseInfo = (String) cache.getCase("001");
        String drugstoreInfo = (String) cache.getDrugstore("类型1");

        System.out.println("病例信息: " + caseInfo);
        System.out.println("药房信息: " + drugstoreInfo);*/
    }

}
